package com.nbufe.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.nbufe.pojo.BookInfo;
import com.nbufe.pojo.ReaderInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author Zan
 * @Create 2024/1/12 14:53
 * @Description :
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LendListVo {

    private Integer id;

    private Integer bookId;

    private Integer readerId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//接收页面输入的时间，将其格式化
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")//后端传的日期格式化
    private Date lendDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date backDate;

    private Integer backType;

    private String exceptRemarks;

    private String readerNumber;

    private String bookName;

    private String realName;
}
